﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oxite.Data;

namespace NotMyself.Oxite.Model
{
    public class User: EntityBase, IUser 
    {
        public User()
        {
            Languages = new List<ILanguage>();
        }

        public virtual string Username { get; set; }
        public virtual string DisplayName { get; set; }
        public virtual string Email { get; set; }
        public virtual string HashedEmail { get; set; }
        public virtual string Password { get; set; }
        public virtual string PasswordSalt { get; set; }
        public virtual byte Status { get; set; }
        public virtual ILanguage LanguageDefault { get; set; }
        public virtual IEnumerable<ILanguage> Languages { get; private set; }
        

        public bool IsAnonymous
        {
            get { return Username == "Anonymous"; }
        }

    }
}
